<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/sessionCheck.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><bean:message key='com.application.systemmanager.notice_list'/></title>
<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />

<script language="javascript" src="<%=path%>/js/util.js"></script>
		<script type='text/javascript' src='<%=path%>/frame/orgSelect/js/ajaxInitSelect.js'></script>
<script language="javascript" src="<%=path%>/js/SyncCommon.js"></script>
</head>
<body>
<html:form styleId="noticeForm" action="updateHelp.do?method=updateHelp" onsubmit="return save();">
      <html:hidden property="id" value="${systemHelp.id}"/>
			<table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">&nbsp;系统管理 &gt; 系统帮助 &gt; 编辑</td>
		    </tr>
		   </table>
		   <table cellspacing="1" cellpadding="0" width="98%" align="center"  border="0" class="bgcolor2 margb5">
 
 <tr align="left" class="bgcolor">
					  <td width="20%" colspan="2" align="right" >标题：<font color="red">*&nbsp;</font></td>
					  <td width="90%" colspan="6" >
					  
					  <input type="text" name="helpTitle" value='${systemHelp.helpTitle}' flag="true" size="80" maxlength="50" valid="required" errMsg="请输入标题！"/>        </td>
				  </tr>
				  <!-- 
				  <tr align="left" class="bgcolor">
					  <td width="20%" colspan="2" align="right" ><bean:message key="com.application.systemmanager.notice_type"/>：<font color="red">*&nbsp;</font></td>
					  <td width="80%" colspan="6" >
			               <ssh:select firstShow="N" propertyName="noticeType" pid="notice_type" type="1" defaultName="${noticeForm.noticeType}" />
					   </td>
				  </tr>
				  <tr align="left" class="bgcolor">
					  <td width="20%" colspan="2" align="right" ><bean:message key="com.application.systemmanager.notice_person"/>：<font color="red">*&nbsp;</font></td>
					  <td width="80%" colspan="6" >
					  <input type="hidden" name="personid">
					 <input type="text" readonly="true" name="noticePerson" maxlength="10" value="${noticeForm.reportName}" flag="true"  valid="required" errMsg="请输入发布人！"/>  
					 	<input class="buttonbg" id="sel_department2" type="button" onclick="org_userSelect('<%=path%>','personid','noticePerson','user')" value="<bean:message key='com.syc.common.equipment.but_select' bundle="resourceB"/>" name="but_select2" />
                  </td>
				  </tr>
				  <tr align="left" class="bgcolor">
					  <td width="20%" colspan="2" align="right" ><bean:message key="com.application.systemmanager.notice_date"/>：<font color="red">*&nbsp;</font></td>
					  <td width="90%" colspan="6" >
					   <input type="text" name="noticeDate" value="${noticeForm.reportDate}" flag="true"  valid="required" errMsg="请输入发布时间！" onclick="popUpCalendarDlg(this)"/>       </td>
				  </tr>
				   -->
				 	<tr align="left" class="bgcolor">
					  <td width="20%" colspan="2" align="right" >帮助解答：<font color="red">*&nbsp;</font></td>
					  <td width="90%" colspan="6" >
                        <html:hidden property="helpContent" value="${systemHelp.helpContent}"/>
		                <IFRAME ID="eWebEditor1" src="<%=basePath%>/common/eWebEditor/eWebEditor.jsp?id=helpContent&style=standard" frameborder="0" scrolling="no" width="650" height="450"></IFRAME>				
                      </td>
				  </tr>

</table>
		


		<p><p><p>
	
	   <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
       <input class="buttonbg" id="but_save" type="submit" value="<bean:message key='com.application.systemmanager.save'/>" name="but_save" />
		  &nbsp;&nbsp;&nbsp;
		  <input class="buttonbg" id="but_return" type="button" value="<bean:message key='com.application.systemmanager.return'/>" name="but_return"" onClick="javascript:history.go(-1);"/>
  </tr>
</table>
  

</html:form>
</body>
</html>


<script>

function save(){

	if(validateForm(document.forms[0],'Y'))
	{
	     if(eWebEditor1.getHTML() == ""){
	    	alert("请输入帮助解答！");
	    	return false;
	    }
	    $("helpContent").value = eWebEditor1.getHTML();
		return true;
		document.forms[0].submit();
	}else{
	    return false;
	}
    
}



</script>

